﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.Unity;

namespace MattDotson.GlobalToolkit.Tests
{
    class UnityServiceLocator : IServiceLocator
    {
        private IUnityContainer container;

        public UnityServiceLocator(IUnityContainer container)
        {
            this.container = container;
        }

        #region IServiceLocator Members

        public T Resolve<T>()
        {
            return container.Resolve<T>();
        }

        #endregion
    }
}
